<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>用户页面</title>
<link href="styles/umeditor.min.css" type="text/css" rel="stylesheet">
<link rel="stylesheet" href="styles/prettify.css"/>
<link rel="stylesheet" href="styles/icon.css"/>
<link rel="stylesheet" href="styles/main.css"/>
<script src="js/jquery-1.12.4.js"></script>
<script src="js/bootstrap.js"></script>
<script type="text/javascript" src="js/alert.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</head>
<body>
	<div align="left">
		<br>
		<a><font size="2" color="gray">您好！ </font></a>
		<a><font size="3" color="gray" id="name"></font></a>
	</div>
	<script type="text/javascript">
		$(function(){
			show_name();
		});
		function show_name(){
			var nickName = window.localStorage.getItem("user_nickname")+"";
			var userId = window.localStorage.getItem("user_id");
			//nickName = ""+nickName;
			//console.log("userId:" + userId);
			//console.log("userNickname:" + nickName);
			if(nickName != "" && nickName != null && nickName != "null"){
				$("#name").append(nickName);
				//console.log("userNickname:" + nickName);
			}else {
				$("#name").append(userId);
			}
		}
	</script>
</body>
</html>